package com.qc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qc.dao.FootprintDao;
import com.qc.entity.FootprintEntity;
import com.qc.service.FootprintService;

@Service("footprintService")
public class FootprintServiceImpl implements FootprintService{

	@Resource(name="footprintDao")
	private FootprintDao footprintDao;

	@Override
	public int saveFootprint(FootprintEntity footprintEntity) {

		return footprintDao.saveFootprint(footprintEntity);
	}

	@Override
	public FootprintEntity getFootprintById(long ssId, long userId) {

		return footprintDao.getFootprintById(ssId, userId);
	}

	@Override
	public int updateFootprint(long bId) {

		return footprintDao.updateFootprint(bId);
	}

	@Override
	public List<FootprintEntity> listAlFootprint(long ssId, long userId, int pageNo,int pageSize) {

		return footprintDao.listAlFootprint(ssId, userId, pageNo, pageSize);
	}
	
	
}
